package com.lethe.medical.service.impl;

import com.lethe.medical.base.BaseService;
import com.lethe.medical.dao.UserDao;
import com.lethe.medical.entity.UserEntity;
import com.lethe.medical.service.UserService;

public class UserServiceImpl extends BaseService<UserEntity> implements UserService {

    UserDao userDao = new UserDao();
    @Override
    public UserEntity findUserByUserName(String username) {
        UserEntity userEntity = userDao.findUserByUserName(username);
        return userEntity;
    }

    @Override
    public UserEntity login(UserEntity userEntity) {
        UserEntity u = userDao.login(userEntity);
        return u;
    }
}
